package hanelsoft.vn.dictionaylearn.control.service;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;

public class WidgetStartAtBootServiceReceiver extends BroadcastReceiver{
	SharedPreferences shareWidget;
	@Override
	public void onReceive(Context context, Intent intent) {
		if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) {
//			AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context); 
//			RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.vocabulary_widget);
//			ComponentName thisWidget = new ComponentName(context, WidgetMyProvider.class);
//			remoteViews.removeAllViews(R.id.vocabulary_widget_Sound);
//			remoteViews.removeAllViews(R.id.vocabulary_widget_Content);
//			appWidgetManager.updateAppWidget(thisWidget, remoteViews);
			//
//			intent = new Intent(context, TooltipAlarmServiceLayoutParams.class);
//			intent.setAction("android.intent.action.ACTION_BOOT_COMPLETED");  
//			context.stopService(intent);
//			intent = new Intent(context, TooltipRunServiceLayoutParams.class);
//			intent.setAction("android.intent.action.ACTION_BOOT_COMPLETED");  
//			context.stopService(intent);
			//
//			intent = new Intent(context, WidgetStartService.class);
//			intent.setAction("android.intent.action.ACTION_BOOT_COMPLETED");  
//			context.stopService(intent);
//			intent = new Intent(context, WidgetUpdateService.class);
//			intent.setAction("android.intent.action.ACTION_BOOT_COMPLETED");  
//			context.stopService(intent);
//			intent = new Intent(context, WidgetMyWidgetIntentReceiver.class);
//			intent.setAction("android.intent.action.ACTION_BOOT_COMPLETED");  
//			context.removeStickyBroadcast(intent);
//			intent = new Intent(context, WidgetMyProvider.class);
//			intent.setAction("android.intent.action.ACTION_BOOT_COMPLETED");  
//			context.removeStickyBroadcast(intent);
		}
	}
}
